/*
 * @(#)FieldMedicion.java  2.0 11/01/11
 * 
 */
package com.hidromedsa.measure.entities;

import java.io.Serializable;
import java.util.List;

/**
 * <p>Fields using in the file</p> 
 * @version 2.0, 11/01/11
 * @since   JDK1.0
 */
public class FieldMedicion implements Serializable, Comparable<FieldMedicion>, Cloneable {

    private String name;
    private long value;
    private FieldTypesEnum type;
    private int position;
    private List<String> values;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
    private String result;

    public FieldMedicion() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public FieldTypesEnum getType() {
        return type;
    }

    public void setType(FieldTypesEnum type) {
        this.type = type;
    }

    public long getValue() {
        return value;
    }

    public void setValue(long value) {
        this.value = value;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public List<String> getValues() {
        return values;
    }

    public void setValues(List<String> values) {
        this.values = values;
    }

    public int compareTo(FieldMedicion o) {
        return new Integer(this.getPosition()).compareTo(o.getPosition());
    }
}
